<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var a=parseInt(prompt("请输入第一个数字"));
    var b=parseInt(prompt("请输入第二个数字"));
    if (a>b){
        alert("a"+"最大");
    }else if (a<b){
        alert("b"+"最大");
    }
</script>
</body>
</html>